package cn.ddy.crud.service;

import cn.ddy.crud.beans.User;
import cn.ddy.crud.dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ddy
 * @create 2020-08-18 17:59:31
 */
@Service
public class UserService {

    @Autowired
    UserDao userDao;

    public List<User> getUsers(){
        return userDao.getUsers();
    }

    public void delById(Integer id) {
        userDao.delById(id);
    }
}
